package com.csd.pojo;

// default package

/**
 * @JavaBean Score
 * @author CSD
 * @version 1.1.1
 * @date 2009-12-16
 * @description 分数记录（记录一个项目整个过程的得分）
 */

public class Score implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// Fields
	/** 数据库唯一标识 */
	private Integer id;
	/** 记录的项目 */
	private Project project;
	/** 前期评审分数-申请初审 */
	private Integer prophasescore;
	/** 中期评审分数-中期审查 */
	private Integer metaphasescore;
	/** 后期评审分数-结题评审 */
	private Integer telophasescore;
	/** 前期答辩 */
	private Integer arscore;
	/** 结题答辩 */
	private Integer erscore;

	// Constructors

	/** default constructor */
	public Score() {
	}

	/** full constructor */
	public Score(Project project, Integer prophasescore,
			Integer metaphasescore, Integer telophasescore, Integer arscore,
			Integer erscore) {
		this.project = project;
		this.prophasescore = prophasescore;
		this.metaphasescore = metaphasescore;
		this.telophasescore = telophasescore;
		this.arscore = arscore;
		this.erscore = erscore;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Project getProject() {
		return this.project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Integer getProphasescore() {
		return this.prophasescore;
	}

	public void setProphasescore(Integer prophasescore) {
		this.prophasescore = prophasescore;
	}

	public Integer getMetaphasescore() {
		return this.metaphasescore;
	}

	public void setMetaphasescore(Integer metaphasescore) {
		this.metaphasescore = metaphasescore;
	}

	public Integer getTelophasescore() {
		return this.telophasescore;
	}

	public void setTelophasescore(Integer telophasescore) {
		this.telophasescore = telophasescore;
	}

	public Integer getArscore() {
		return this.arscore;
	}

	public void setArscore(Integer arscore) {
		this.arscore = arscore;
	}

	public Integer getErscore() {
		return this.erscore;
	}

	public void setErscore(Integer erscore) {
		this.erscore = erscore;
	}

	@Override
	public String toString() {
		if (telophasescore == null)
			return "无数据";
		else
			return "" + telophasescore;

	}

}